package com.sbs.gaoxinqutoilet.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.sbs.gaoxinqutoilet.utils.LogUtils;

/**
 * If you change her, tell me
 * sometimes I believe compiler ignores all my comments
 * Created by gyyak46 on 2017/8/28.
 */

public class ScreenStatusReceiver extends BroadcastReceiver{

    String SCREEN_ON = "android.intent.action.SCREEN_ON";
    String SCREEN_OFF = "android.intent.action.SCREEN_OFF";


    @Override
    public void onReceive(Context context, Intent intent) {
        if (SCREEN_ON.equals(intent.getAction())) {
            LogUtils.e("显示","broadCastreceiver screen_on");
            //开屏 再次登录    改为不跳转到登录页
            //EventBus.getDefault().post(new EventCenter(EventConstant.LOGIN_LINK));
        }
        if (SCREEN_OFF.equals(intent.getAction())) {

            LogUtils.e("显示","broadCastReceiver screen_off");
        }
    }

}
